package com.geo.fight;

import java.awt.geom.Rectangle2D;



public class Ballon {
	
	/**
	 * @author Geo
	 */
	
	private double bradius = 50.0;
	private double xPos;
	private double yPos;
	private double xVelo;
	private double yVelo;
	private boolean visible;
	private Particle[] particles = null;
	private boolean isBlow;
	
	public double getBradius() {
		return bradius;
	}


	public void setBradius(double bradius) {
		this.bradius = bradius;
	}

	public Ballon(){
		visible = true;
		xVelo = 0;
		yVelo = 0.76;
		isBlow = false;
	}
	public Ballon(double xPos,double yPos){
		this.xPos = xPos;
		this.yPos = yPos;
		visible = true;
		xVelo = 0;
		yVelo = 0.75;
		isBlow = false;
	}
	
	
	public Rectangle2D getBounds(){
		return new Rectangle2D.Double(xPos, yPos, bradius, bradius);
	}
	
	
	public void setXVelo(double xVelo){
		this.xVelo = xVelo;
	}
	public void setYVelo(double yVelo){
		this.yVelo = yVelo;
	}
	public void setVisible(boolean visible){
		this.visible = visible;
	}
	public double getxPos() {
		return xPos;
	}


	public void setxPos(double xPos) {
		this.xPos = xPos;
	}


	public double getyPos() {
		return yPos;
	}


	public void setyPos(double yPos) {
		this.yPos = yPos;
	}


	public boolean isVisible(){
		return visible;
	}
	
	public double getXVelo(){
		return this.xVelo;
	}
	public double getYVelo(){
		return this.yVelo;
	}
	
	public void moveB(){
		System.out.println(xVelo+"  "+yVelo);
		
		xPos+=xVelo;
		yPos-=yVelo;
	}
	
	public Particle[] getParticles() {
		return particles;
	}


	public void setParticles(Particle[] particles) {
		this.particles = particles;
	}


	public void blow(){
		
		isBlow = true;
		visible = false;
	}
	
	public boolean getisBlow(){
		return isBlow;
	}
	
	
}
